<?php

// @formatter:off
/**
 * @file 404.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: 404.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/frontview/actions/404.php $
 */
// @formatter:on

class ActionController404 extends WCActionController {
	//
	// Protected methods.
	protected function subRun() {
		$ok = true;

		$this->_manager->PATH = "404 - Page Not Found";

		if($this->parentView()) {
			$url = "?action={$this->parentView()}&explainsearch&nolayout";

			$this->_manager->error_url = $url;
			$this->_manager->error_action = $this->parentView();
		}

		return $ok;
	}
}

?>